<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
import { userGetApiToken } from '@/api/home.js'
export default {
  data() {
    return {

    }
  },
  mounted() {
    // this.getTokenFn()
  },
  methods: {
    getTokenFn() {
      userGetApiToken().then(res => {
        if(res.code === 200) {
          localStorage.setItem('token', res.data)
        }
      }).catch(err => {
        console.log(err)
      })
    }
  }
}
</script>

<style lang="scss">
html,body {
  padding: 0;
  margin: 0;
  height: 100%;
  // background: #f6f8fa;
  color: #333;
  // #009fb5 主题色
}
#app {
  // height: 100%;
}
* {
  margin: 0;
  padding: 0;
}
.el-button--primary {
  background: #2b82e7 !important;
}
.el-scrollbar .el-scrollbar__wrap {
  overflow-x: hidden;
}
</style>
